package com.chushouya.order.dto.admin.orderaddress;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("订单用户地址")
public class OrderAddressDTO {
    @NotBlank(message = "姓名不能为空")
    public String userName;

    @ApiModelProperty(value = "联系方式", required = false)
    public String userPhone;

    @ApiModelProperty(value = "地址", required = false)
    public String address;

    @ApiModelProperty(value = "省", required = false)
    public String province;

    @ApiModelProperty(value = "市", required = false)
    public String city;

    @ApiModelProperty(value = "区", required = false)
    public String district;

    @ApiModelProperty(value = "省份編碼", required = false)
    public Long provinceCode;

    @ApiModelProperty(value = "市編碼", required = false)
    public Long cityCode;

    @ApiModelProperty(value = "區編碼", required = false)
    public Long districtCode;
}
